package com.by.util;
/*
* 分页工具类
* */
public class PageUtil {
    //每页显示的条数
    public static final int PAGE_SIZE= 3;

    /*
    * 计算总页数
    * */
    public static int getTotalPages(int count,int pageSize){
        return count%pageSize==0?count/pageSize:count/pageSize+1;
    }
}
